package com.jianjun.common.constant;

import com.jianjun.common.util.AllConfig;

/**
 * @author Source
 */
public class CommonAttribute {
    public static final String VERSION = AllConfig.CONFIG.get("common.version");
    /**
     * 系统配置文件
     */
    public static final String CONFIG_PROPERTIES = "config.properties";
    public static final String DATABASE_PROPERTIES = "database.properties";

    public static final String PS = "\"";

    public static final String ENCODING = "UTF-8";
    public static final String CODE = "code";
    public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_FORMAT_T = "yyyy-MM-dd'T'HH:mm:ss";
    //|zip
    public static final String ZIP = ".zip";
    public static final String JSON = ".json";
    public static final String TEMP = ".temp";


    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";
    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";
    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";
    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";
    /**
     * 分页参数合理化
     */
    public static final String REASONABLE = "reasonable";

}
